<template>
  <div>
    <img :src="serviceInfo.imgUrl" alt="" />
    <p class="service-name" @click="$router.push({ name: serviceInfo.path })">
      {{ serviceInfo.name }}
    </p>
    <a-icon type="right" />
  </div>
</template>

<script>
export default {
  props: {
    serviceInfo: {
      type: Object,
    },
  },
};
</script>
<style lang="scss" scoped>
div {
  padding-top: 20px;
  padding-bottom: 20px;
  height: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgb(233, 225, 225);
  img {
    margin-left: 20px;
    height: 2rem;
  }
  p {
    flex-grow: 1;
    margin: 0px;
    font-size: 15px;
    font-weight:100;
    color: black;
    margin-left: 20px;
    border-radius: 8px;
  }
}
</style>